package net.entelijan.cobean.notification;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class EventContentBean {

	private Object oldValue;
	
	private Object newValue;
	
	private String propertyName;
	
	public EventContentBean() {
		super();
	}

	public EventContentBean(Object oldValue, Object newValue, String propertyName) {
		super();
		this.oldValue = oldValue;
		this.newValue = newValue;
		this.propertyName = propertyName;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.SHORT_PREFIX_STYLE);
	}


	
	public Object getOldValue() {
		return oldValue;
	}

	public void setOldValue(Object oldValue) {
		this.oldValue = oldValue;
	}

	public Object getNewValue() {
		return newValue;
	}

	public void setNewValue(Object newValue) {
		this.newValue = newValue;
	}

	public String getPropertyName() {
		return propertyName;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

}
